package cn.tedu.coolshark.controller;


import cn.tedu.coolshark.mapper.BannerMapper;
import cn.tedu.coolshark.mapper.CategoryMapper;
import cn.tedu.coolshark.pojo.entity.Banner;
import cn.tedu.coolshark.pojo.entity.Category;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class BannerController {

    @Autowired(required = false)
    private BannerMapper bannerMapper;
    @RequestMapping("/bannerArr/select")
    public List<Banner> select(){
        return bannerMapper.select();
    }

}
